// 入口文件
import Vue from 'vue'
//引入Mint-ui 第二次修改
import { Header,Swipe, SwipeItem,Button } from 'mint-ui';
import './lib/mui/css/mui(1).css'
import './lib/mui/css/icons-extra.css'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router.js'
import VueResource from 'vue-resource'
import moment from 'moment'
Vue.use(VueRouter)
Vue.use(VueResource)
Vue.http.options.root = 'http://www.liulongbin.top:3005';
Vue.http.options.emulate= true;
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);
Vue.filter('dateFormat',(datastr) => {
  return moment(datastr).format('YYYY年MM月DD日 HH时mm分ss秒')
})
var  vm = new Vue({
  el: '#app',
  render: c => c(App),
  router
})